package com.jrx.anytxn.reporting.job.payment.step;

import com.jrx.anytxn.reporting.bean.PaymentDataBean;
import com.jrx.anytxn.reporting.service.IPaymentLogDataService;
import com.jrx.anytxn.transaction.entity.TlPaymentLog;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AutoAssemPaymentLogProcessor implements ItemProcessor<TlPaymentLog, PaymentDataBean> {

    @Autowired
    private IPaymentLogDataService paymentLogDataService;

    @Override
    public PaymentDataBean process(TlPaymentLog tlPaymentLog) throws Exception {
        return paymentLogDataService.assemPaymentLogData(tlPaymentLog);
    }
}
